package com.teamide.bean;

import com.teamide.exception.Errcode;

/**
 * 结果集对象，一般用于相应http请求
 * 
 * @author ZhuLiang
 *
 */
public class Status extends ResultBean<Object> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static long getSerialversionuid() {

		return serialVersionUID;
	}

	public static final Status SUCCESS() {

		return new Status(Errcode.SUCCESS, "成功");
	}

	public static final Status FAIL() {

		return new Status(Errcode.FAIL, "失败");
	}

	public Status() {

	}

	public Status(String errcode, String errmsg) {

		this.errcode = errcode;
		this.errmsg = errmsg;
	}

	public Status(int errcode, String errmsg) {

		this.errcode = Integer.toString(errcode);
		this.errmsg = errmsg;
	}

}
